
export interface ApiResponse<T = any> {
  success: boolean;
  data?: T;
  error?: string;
}

export interface QueryRequest {
  query: string;
}

export interface ChartConfigRequest {
  data: any[];
  query: string;
  chart_type?: string;
}

export interface QueryResponse {
  sql: string;
  explanation: string;
  data: any[];
  chart_config: any;
}

export type ChartType = 
  | 'bar' 
  | 'line' 
  | 'pie' ;